package org.testis.data;

import java.io.Serializable;
import java.util.LinkedHashMap;


/**
 * A class defines result of test step. Any module recieved test step data
 * object will return a result data object to acknowledge  status of test step.
 * @author nurhat
 */
public class TestStepResultDataObject implements Serializable
{

    private static final long serialVersionUID = 19823L;
    /**
     * Data Object used to run test step
     */
    protected TestStepDataObject m_dataObj;
    /**
     * Result of test step
     */
    protected boolean m_result;
    private boolean m_cancelled;
    private TestStepResultType m_resultType;
    private LinkedHashMap<String, String> m_returnValueList;


    public TestStepResultDataObject(TestStepDataObject data)
    {
        m_result = false;
        m_dataObj = new TestStepDataObject(data);
        m_returnValueList = new LinkedHashMap<String, String>();

    }


    public TestStepDataObject getDataObj()
    {
        return m_dataObj;
    }


    public boolean getResult()
    {
        return m_result;
    }


    public void setDataObj(TestStepDataObject dataObj)
    {
        this.m_dataObj = dataObj;
    }


    public void setResult(boolean result)
    {
        this.m_result = result;
    }


    public boolean isCancelled()
    {
        return m_cancelled;
    }


    public void setCancelled(boolean m_Cancelled)
    {
        this.m_cancelled = m_Cancelled;
    }


    public TestStepResultType getResultType()
    {
        return m_resultType;
    }


    public void setResultType(TestStepResultType m_resultType)
    {
        this.m_resultType = m_resultType;
    }


    public LinkedHashMap<String, String> getReturnValueList()
    {
        return m_returnValueList;
    }


    public void setReturnValueList(
        LinkedHashMap<String, String> m_uiObjectValueList)
    {
        this.m_returnValueList = m_uiObjectValueList;
    }
}
